﻿Create Function GetMinPriceByStoneTypeId
(
	@StoneTypeId int
)
Returns Int
As
Begin
	
	Declare @MinPrice int

	select 
		@MinPrice = min(Price)
	from stone 
	where StoneTypeId = @StoneTypeId

	return 	@MinPrice

End